<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>后台系统</title>
    <#assign base=request.contextPath  />
    <link rel="stylesheet" href="${base}/admin/MyStatic/frame/layui/css/layui.css">
    <link rel="stylesheet" href="${base}/admin/MyStatic/frame/static/css/style.css">
    <link rel="icon" href="${base}/admin/MyStatic/frame/static/image/code.png">
    <style type="text/css">

		html .skin-0 .dblclick-tips-box i.layui-layer-TipsB {
		    border-right-color:#393D49;
		}
		html .skin-0 .dblclick-tips-box .layui-layer-content {
		    background-color: #393D49;
		}

    </style>
</head>
<body>
<script>
    //控制跳出ifream框架
    if (window != top)
        top.location.href = location.href;
</script>
<!-- layout admin -->
<div class="layui-layout-admin">
    <!-- header -->
    <div class="layui-header my-header">
   <#-- 	<img style="height: 60px;margin-left: 150px;" src="${base}/admin/MyStatic/img/system.jpg"/>-->
        <a href="index.html">
            <div class="my-header-logo"style="font-size: 16px;color: #c1c2c6;"><i class="layui-icon layui-icon-util" style="font-size: 25px; color: white;"> 后台管理系统 </i></div>
        </a>
        <!-- 顶部右侧添加选项卡监听 -->
        <ul class="layui-nav my-header-user-nav" lay-filter="side-top-right" style="margin-right: 130px;">
            <li class="layui-nav-item"><a href="javascript:;" class="pay" href-url=""><span id="logInfo"></span></a></li>
            <li class="layui-nav-item">
                <a class="name" href="javascript:;"><i class="layui-icon layui-icon-friends" style="font-size: 20px; color: white;">  ${user.username} </i>
                <dl class="layui-nav-child">
                    <dd><a href="${base}/admin/logout"><i class="layui-icon">&#x1006;</i>登出</a></dd>
                </dl>
            </li>
            </li>
        </ul>
    </div>
    <!-- side -->
    <div class="layui-side my-side" >
        <div class="layui-side-scroll">
            <!-- 左侧主菜单添加选项卡监听 -->
            <ul class="layui-nav layui-nav-tree" lay-filter="side-main">
                <@shiro.hasPermission name="menu:系统管理">
               <li class="layui-nav-item  layui-nav-itemed">
                     <a href="javascript:;"><i class="layui-icon">&#xe620;</i>系统管理</a>
                    <dl class="layui-nav-child">
                          <@shiro.hasPermission name="menu:角色管理">
                          <dd><a href="javascript:;" href-url="${base}/admin/role/main.html"><i class="layui-icon"></i>角色管理</a></dd>
                          </@shiro.hasPermission>

                          <@shiro.hasPermission name="menu:用户管理">
                          <dd><a href="javascript:;" href-url="${base}/admin/user/main.html"><i class="layui-icon"></i>用户管理</a></dd>
                          </@shiro.hasPermission>


                         <@shiro.hasPermission name="menu:系统监控">
                         <#-- <dd><a href="javascript:;" href-url="${base}/druid/main.html"><i class="layui-icon"></i>系统监控</a></dd>-->
                         </@shiro.hasPermission>
                        <dd><a href="javascript:;" href-url="http://localhost:15672/"><i class="layui-icon"></i>MQ监控</a></dd>
                        <dd><a href="javascript:;" href-url="http://localhost:8080/"><i class="layui-icon"></i>Eureka监控</a></dd>

                         <@shiro.hasPermission name="menu:系统日志">
                          <dd><a href="javascript:;" href-url="${base}/admin/log/main.html"><i class="layui-icon"></i>系统日志</a></dd>
                         </@shiro.hasPermission>
                        <dd><a href="javascript:;" href-url="${base}/admin/sysAgreement/main.html"><i class="layui-icon"></i>用户协议</a></dd>
                        <dd><a href="javascript:;" href-url="${base}/admin/system/system.html"><i class="layui-icon"></i>系统详情</a></dd>
                    </dl>
                </li>
                    </@shiro.hasPermission>


                <li class="layui-nav-item">
                	 <a href="javascript:;"><i class="layui-icon">&#xe60b;</i>分销管理</a>
                    <dl class="layui-nav-child">
                        <dd><a href="javascript:;" href-url="${base}/admin/role/level.html"><i class="layui-icon"></i>分销级别</a></dd>
                        <dd><a href="javascript:;" href-url="${base}/admin/user/distributionPeoPle.html"><i class="layui-icon"></i>分销人员</a></dd>
                    </dl>
                </li>

                <#--新闻管理咨询-->
                <li class="layui-nav-item">
                    <a href="javascript:;"><i class="layui-icon">&#xe663;</i>新闻资讯</a>
                    <dl class="layui-nav-child">
                        <dd><a href="javascript:;" href-url="${base}/admin/news/news_list.html"><i class="layui-icon"></i>资讯列表</a></dd>
                    </dl>
                </li>

            </ul>

        </div>
    </div>
    <!-- body -->
    <div class="layui-body my-body" >
        <div class="layui-tab layui-tab-card my-tab" lay-filter="card" lay-allowClose="true">
            <ul class="layui-tab-title">
                <li class="layui-this" lay-id="1"><span><i class="layui-icon">&#xe638;</i>欢迎页</span></li>
            </ul>
            <div class="layui-tab-content">
                <div class="layui-tab-item layui-show">
                    <iframe id="iframe" src="${base}/admin/system/welcome.html" frameborder="0"></iframe>
                </div>
            </div>
        </div>
    </div>

     <div class="layui-footer my-footer" style="text-align: center;font: '微软雅黑';font-size: 12px;">
    	© 2018 YourCompany | 版权所有-xxxxx有限公司
    </div>
</div>

<!-- pay -->
<div class="my-pay-box none">
    <div><img src="./frame/static/image/wx.png"style="width:300px;" alt="微信"><p>微信</p></div>
</div>

<!-- 右键菜单 -->
<div class="my-dblclick-box none">
    <table class="layui-tab dblclick-tab">
        <tr class="card-refresh">
            <td><i class="layui-icon">&#x1002;</i>刷新当前标签</td>
        </tr>
        <tr class="card-close">
            <td><i class="layui-icon">&#x1006;</i>关闭当前标签</td>
        </tr>
        <tr class="card-close-all">
            <td><i class="layui-icon">&#x1006;</i>关闭所有标签</td>
        </tr>
    </table>
</div>


<script type="text/javascript" src="${base}/admin/MyStatic/frame/layui/layui.js"></script>
<script type="text/javascript" src="${base}/admin/MyStatic/frame/static/js/vip_comm.js"></script>
<script language="javascript">
			function getCurDate() {
				var d = new Date();
				var week;
				switch(d.getDay()) {
					case 1:week = "星期一";break;
					case 2:week = "星期二";break;
					case 3:week = "星期三";break;
					case 4:week = "星期四";break;
					case 5:week = "星期五";break;
					case 6:week = "星期六";break;
					default:week = "星期天";
				}
				var years = d.getFullYear();
				var month = add_zero(d.getMonth() + 1);
				var days = add_zero(d.getDate());
				var hours = add_zero(d.getHours());
				var minutes = add_zero(d.getMinutes());
				var seconds = add_zero(d.getSeconds());
				var ndate = years + "年" + month + "月" + days + "日 " + hours + ":" + minutes + ":" + seconds + " " + week;
				var divT = document.getElementById("logInfo");
				divT.innerHTML = ndate;
			}

			function add_zero(temp) {
				if(temp < 10) return "0" + temp;
				else return temp;
			}
			setInterval("getCurDate()", 100);
		</script>
</body>
</html>